package com.pingan.haofang.searchcloud.web.index.vo.example;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * RPC响应示例
 *
 * @author zhangbi617
 * @date 03/05/2017
 */
@ApiModel(description = "RPC响应示例")
public class RpcExampleResponse<T> {

    @ApiModelProperty(value = "traceId，跟踪排查问题使用", example = "78aba412-10c1-47c6-88bd-06400918b685")
    private String id;

    @ApiModelProperty(value = "RPC版本，固定值2.0", example = "2.0")
    private String jsonrpc;

    @ApiModelProperty(value = "RPC响应数据示例")
    private RpcExampleResponseResult<T> result;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getJsonrpc() {
        return jsonrpc;
    }

    public void setJsonrpc(String jsonrpc) {
        this.jsonrpc = jsonrpc;
    }

    public RpcExampleResponseResult<T> getResult() {
        return result;
    }

    public void setResult(RpcExampleResponseResult<T> result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "RpcExampleResponse{" +
                "id='" + id + '\'' +
                ", jsonrpc='" + jsonrpc + '\'' +
                ", result=" + result +
                '}';
    }
}
